package wli.java.file.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class FileLoadUtil {
	String fileName;

	public void setFileName(String file_name) {
		fileName = file_name;
	}

	public Properties getPropreties() throws IOException {
		Properties prop = new Properties();
		//fileName = "FileSystem.property";
		InputStream is = new FileInputStream(fileName);

		prop.load(is);

		System.out.println(prop.getProperty("base_dir"));
		System.out.println(prop.getProperty("file_home"));
		return prop;
	}
}
